<form id="add-form" class="form-horizontal form-ajax" role="form" data-toggle="validator" method="POST" action="">
	<div class="form-group">
		<label class="control-label col-xs-12 col-sm-2">类型:</label>
		<div class="col-xs-12 col-sm-8">
			{:build_select('type_ids[]', $treeList, [], ['class'=>'form-control selectpicker',  'multiple'=>'true','data-rule'=>'required'])}
		</div>
	</div>
	<div class="form-group">
		<label class="control-label col-xs-12 col-sm-2">产品:</label>
		<div class="col-xs-12 col-sm-8">
			{:build_select('product_ids[]', $productList, [], ['class'=>'form-control selectpicker',  'multiple'=>'true','data-rule'=>'required'])}
		</div>
	</div>
	<div class="form-group" id="title">
		<label class="control-label col-xs-12 col-sm-2">标题:</label>
		<div class="col-xs-12 col-sm-8">
			<input type="text" name="row[title]" placeholder="请输入标题" class="form-control" data-rule="required"/>
		</div>
	</div>
	<div class="form-group" id="method">
		<label class="control-label col-xs-12 col-sm-2">处理方式:</label>
		<div class="col-xs-12 col-sm-8">
			<input type="text" name="row[method]" placeholder="请输入处理方式" class="form-control" data-rule="required"/>
		</div>
	</div>
	<div class="form-group" id="desc">
		<label class="control-label col-xs-12 col-sm-2">简介:</label>
		<div class="col-xs-12 col-sm-8">
			<input type="text" name="row[desc]" placeholder="请输入简介" class="form-control" data-rule="required" value=""/>
		</div>
	</div>
	<div class="form-group">
		<label class="control-label col-xs-12 col-sm-2">标题图片:</label>
		<div class="col-xs-12 col-sm-8">
			<div class="input-group">
				<input id="c-avatar" class="form-control" size="50" placeholder="请上传标题图片" name="row[img]" type="text" >
				<div class="input-group-addon no-border no-padding">
					<span><button type="button" id="faupload-avatar" class="btn btn-danger faupload" data-input-id="c-avatar" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-avatar"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
				</div>
				<span class="msg-box n-right" for="c-avatar"></span>
			</div>
			<ul class="row list-inline faupload-preview" id="p-avatar"></ul>
		</div>
	</div>

	<div class="form-group" id="contents">
		<label class="control-label col-xs-12 col-sm-2">详情:</label>
		<div class="col-xs-12 col-sm-8">
			<textarea class="form-control editor" id="description" rows="6" name="row[content]"
				  placeholder="详情"></textarea>
		</div>
	</div>
	<div class="form-group hidden layer-footer">
		<div class="col-xs-2"></div>
		<div class="col-xs-12 col-sm-8">
			<button type="submit" class="btn btn-success btn-embossed">{:__('OK')}</button>
			<button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
		</div>
	</div>
</form>

